<?php

namespace app\service;

use app\model\OrderPersonCertificateRegister;
use app\model\SystemCertificate;

/**
 * 订单证书审核 搜索类
 */
class OrderCertReview
{

    public function spliceWhere($params = [])
    {
        $pcrModel = new OrderPersonCertificateRegister();
        $systemCert = new SystemCertificate();
        $pcr_ids = [];
    }

    public function handlePersonIds($person_ids, $other_ids)
    {
        if ($person_ids && $other_ids) {
            $person_ids = array_intersect($person_ids, $other_ids);
        } elseif ($person_ids && !$other_ids) {
            $person_ids = [];
        } elseif (!$person_ids && $other_ids) {
            $person_ids = $other_ids;
        } elseif (!$person_ids && !$other_ids) {
            $person_ids = [];
        }
        return $person_ids;
    }
}